package com.adv.ems.db.mapper;

import com.adv.ems.model.dto.TablePartitionInfoDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.adv.ems.db.entity.SystemConfigDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface SystemConfigMapper extends BaseMapper<SystemConfigDO> {

    List<String> getTableExistedPartitions(@Param("tableName") String tableName);

    int dropPartitions(@Param("tableName") String tableName, @Param("list")List<String> list);

    int addPartitions(@Param("tableName") String tableName, @Param("list")List<TablePartitionInfoDTO.PartitionKey> list);
}
